home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 18
/
CU Amiga Magazine's Super CD-ROM 18 (1997)(EMAP Images)(GB)[!][issue 1998-01].iso
/
CUCD
/
Magazine
/
WiredWorld
/
THOR_2.5_upgrade
/
rexx
/
Edge
/
Cool.edge
< prev
next >
Wrap
Text File
|
1997-09-15
|
945b
|
48 lines
/*
** $VER: Cool.edge 1.0 (13.1.96)
** Coolify (using "TEXT COOLER v1.0 by
** DDT of the HALF-BRAINS TEAM")
** text block - by Troels Walsted Hansen
** added Edge support - Kirk A. Hans
** Function: for now, it takes the text from the current line position to the
** end of the file and makes it "cool". Will added block support in
** the next version */
options results
getenvvar _WE_CursorY
currline = result
getenvvar _WE_CursorX
currcolumn = result
getenvvar _FE_Lines
lastline = result
call open(tfh, "t:UncoolTempFile", W)
do i=currline to lastline
'Position' LINE i
getenvvar _WE_CLine RAW
lin = result
if(lin~= "") then do
delete LINE
i = i-1
end
else break
call writech(tfh,lin)
end
call close(tfh)
address command "Cool >nil: t:UncoolTempFile t:CoolTempFile"
call delete("t:UncoolTempFile")
Position currcolumn currline
INCLUDE "t:CoolTempFile"
call delete("t:CoolTempFile")
Position currcolumn currline